package com.kun.base.web.websocket;

import java.io.Serializable;

/**
 * Created by likun on 2017/4/18.
 * websocket消息发送实体类
 */
public class WSMessage implements Serializable {

    /**
     * 消息类型
     */
    public static final String MESSAGE_TYPE_SYSTEM="系统消息";
    public static final String MESSAGE_TYPE_ONLION="用户上线";
    public static final String MESSAGE_TYPE_OFFLINE="用户下线";
    public static final String MESSAGE_TYPE_MESSAGE="发送消息";

    /**
     * 消息类型
     */
    private String type;

    /**
     * 消息发送者
     */
    private String messageSender;

    /**
     * 消息接收者
     */
    private String messageReceiver;

    /**
     * 消息内容
     */
    private String messageContext;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMessageSender() {
        return messageSender;
    }

    public void setMessageSender(String messageSender) {
        this.messageSender = messageSender;
    }

    public String getMessageReceiver() {
        return messageReceiver;
    }

    public void setMessageReceiver(String messageReceiver) {
        this.messageReceiver = messageReceiver;
    }

    public String getMessageContext() {
        return messageContext;
    }

    public void setMessageContext(String messageContext) {
        this.messageContext = messageContext;
    }
}
